package org.wizard.andy;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class Android extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        View buttonStart = findViewById(R.id.start_button);
        buttonStart.setOnClickListener(this);
        View buttonEnd = findViewById(R.id.exit_button);
        buttonEnd.setOnClickListener(this);
        View buttonFaces = findViewById(R.id.images_button);
        buttonFaces.setOnClickListener(this);
        
    }
    
    public void onClick(View view) {
    	
    	switch (view.getId()) {
    	
    	case R.id.images_button: 
    		
    		/*Intent i1 = new Intent(this, IndovinaChi.class);
    		startActivity(i1);*/
    		break;
    		
    	case R.id.start_button:
    		
    		Intent i = new Intent(this, Elements.class);
    		startActivity(i);
    		break;
    		
    	case R.id.exit_button:
    		
    		finish();
    		break;
    	}
    }
}